package cn.tedu.oop;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

/*本类用于oop综合练习*/
public class TestTeacher {
    public static void main(String[] args) {
        Teacher t = new Teacher();
        t.setAge(123);
        t.setName("小强");
        t.setGender('男');
        t.setSalary(12345.524);
        System.out.println(t.getAge()+"\t"+t.getGender()+"\t"+t.getSalary()+"\t"+t.getName());
        Teacher t1 = new Teacher(123668);
        t1.setAge(513);
        t1.setName("小强hh");
        t1.setGender('女');
        t1.setSalary(1445.524);
        System.out.println(t1.getAge()+"\t"+t1.getGender()+"\t"+t1.getSalary()+"\t"+t1.getName());

        Teacher t2 = new Teacher("小跳蚤",'男',15,999999);

        System.out.println(t2.getAge()+"\t"+t2.getGender()+"\t"+t2.getSalary()+"\t"+t2.getName());

    }
}
class Teacher{
    private String name;//姓名
    private char gender;//性别
    private int age;//年龄
    private double salary;//薪资

    public Teacher(){
        System.out.println("无参老师");
    }

    public Teacher(int n){
        System.out.println(n+"个含参老师");
    }

    public Teacher(String name, char gender, int age, double salary) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.salary = salary;
        System.out.println(name+"老师,性别是："+gender+"。今年"+age+"岁，工资是："+salary);
    }

    public String ready(){
        System.out.println("正在备课中...");
        return"产出课程+1";
    }
    public void teach(String subject){
        System.out.println("正在授课："+subject);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
}